home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 November / PCWNOV08.iso / Software / Freeware / Mini Map Sidebar 0.3 / mini_map_sidebar-0.3.0-fx.xpi / chrome / content / firefoxOverlay.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-07-12  |  8.8 KB  |  178 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE overlay SYSTEM "chrome://minimap/locale/minimap.dtd">
  4.  
  5. <overlay id="minimapOverlay"
  6.                  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  7.  
  8.     <script type="application/x-javascript" src="chrome://minimap/content/rdfds.js"/>
  9.     <script type="application/x-javascript" src="chrome://minimap/content/geooverlay.js"/>
  10.     <script type="application/x-javascript" src="chrome://minimap/content/json.js"/>
  11.     <script type="application/x-javascript" src="chrome://minimap/content/services.js"/>
  12.  
  13.     <menupopup id="viewSidebarMenu">
  14.         <menuitem observes="viewminimap"/>
  15.     </menupopup>
  16.     <broadcasterset id="mainBroadcasterSet">
  17.         <broadcaster id="viewminimap" 
  18.             label="&minimap.title;"
  19.             autoCheck="false"
  20.             type="checkbox"
  21.             group="sidebar"
  22.             sidebarurl="chrome://minimap/content/minimap.xul"
  23.             sidebartitle="&minimap.title;"
  24.             oncommand="toggleSidebar('viewminimap');    gdgeourltimeoutff()"/>
  25.     </broadcasterset>
  26.     <toolbarpalette id="BrowserToolbarPalette">
  27.         <toolbarbutton id="minimap-button" class="toolbarbutton-1" type="menu-button" label="&toolbarbutton.minimapper;" tooltiptext="&toolbarbutton.toggle.minimapper;" oncommand="toggleSidebar('viewminimap'); gdgeourltimeoutff()">
  28.         <menupopup >
  29.         <menuitem id="" label="&statusbar.sidebar;" tooltiptext="&statusbar.sidebar;" oncommand="toggleSidebar('viewminimap'); gdgeourltimeoutff(); event.stopPropagation();" />
  30.         <menuitem id="" label="&statusbar.tab;" oncommand="statusMapTab(); event.stopPropagation();"/>
  31.                 <menuitem label="Open Map Preview" id="" oncommand="minimapPanel(); event.stopPropagation();" />
  32.         </menupopup>
  33.         </toolbarbutton>
  34.     </toolbarpalette>
  35.     <statusbar id="status-bar">
  36.         <statusbarpanel id="geourl-statusbarff"
  37.             class="statusbarpanel-menu-iconic" 
  38.             src="chrome://minimap/skin/status_but.png"
  39.             insertafter="statusbarpanel-progress"
  40.             style="cursor: pointer">
  41.             <label id="geodiscovery-label" value="&statusbar.geodiscovery;" hidden="true"/>
  42.             <menupopup id="geodiscoveryMenuPopup" position="before_start">        
  43.             </menupopup>
  44.         </statusbarpanel>
  45.  
  46.  
  47.         
  48.     </statusbar>
  49.     <popupid id="contentAreaContextMenu">
  50.     
  51.         <menuitem id="context-minimap-tab" insertafter="context-searchselect" label="&context.locate.address;" oncommand="minimapContext();"/>
  52.         <menuitem id="context-minimap-sidebar" insertafter="context-searchselect" label="&context.locate.address.sidebar;" oncommand="minimapContextSidebar();    gdgeourltimeoutff()"/>
  53.         <menuitem label="Map Preview" id="context-minimap-panel" insertafter="context-searchselect" oncommand="minimapPanel();" class="menuitem-iconic" image="chrome://minimap/skin/map_but.png" />
  54.         
  55.         <menuitem label="&context.link.maptab;" id="maptab-link-context" insertafter="context-sep-copylink" oncommand="addContextLink('maptab')" />
  56.         <menuitem label="&context.link.sidebar;" id="minimap-link-context" insertafter="context-sep-copylink" oncommand="addContextLink('sidebar')"/>
  57. <menuitem label="Open Link in Map Preview" id="minimap-panel-link-context" insertafter="context-sep-copylink" oncommand="addContextLink('panel')" class="menuitem-iconic" image="chrome://minimap/skin/map_but.png" />
  58.  
  59.  
  60.     </popupid>
  61.     
  62.     <popupset id="mainPopupSet">
  63.     
  64.     <panel id="mappanel" class="" onpopupshown="mapsPopupShown();" onpopuphidden="mappanelHidden();" hidden="true" style="
  65.     -moz-appearance: none;
  66.   background: rgba(0, 0, 0, .8);
  67.   color: white;
  68.   border: 3px solid #ccc;
  69.   -moz-border-top-colors: #ccc #ccc black;
  70.   -moz-border-right-colors: #ccc #ccc black;
  71.   -moz-border-bottom-colors: #ccc #ccc black;
  72.   -moz-border-left-colors: #ccc #ccc black;
  73.   -moz-border-radius: 10px;
  74.   margin-top: -3px;
  75.   margin-left: -3px;">
  76.       <hbox width="460" height="360" align="start">
  77.         
  78.         <vbox>
  79.     <hbox width="400" maxwidth="400" height="300" style="margin: 15px;" ><image id="mappanelimage" src="" width="400" height="300" style="overflow: hidden" /></hbox>
  80.           <hbox style="margin: 0 15px 15px 15px; border: 1px solid #ccc; -moz-border-radius: 5px; padding: 5px 0 5px 0">
  81. <vbox>
  82. <grid>
  83.     <columns>
  84.         <column flex="0"/>
  85.         <column flex="1"/>
  86.         <column flex="0"/>
  87.     </columns>
  88.     <rows>
  89.         <row align="center">
  90. <label value="From: "/><textbox id="mappanel-from" width="220" clickSelectsAll="true"/>
  91. <hbox>
  92. <toolbarbutton tooltiptext="Use Address List item" type="menu" dir="reverse" id="mappanel-from-list" class="geobutc"
  93. datasources="" ref="" style="color: #000" sortResource="http://www.flock.com/rdf/maps#title" sortDirection="ascending"> 
  94.     <template>
  95.         <rule>
  96.             <menupopup>
  97.                 <menuitem uri="rdf:*" id="rdf:http://www.flock.com/rdf/maps#id"  label="rdf:http://www.flock.com/rdf/maps#title" value="rdf:http://www.flock.com/rdf/maps#location" oncommand="mappanelFromReplaceAddress(this.value)"/>
  98.             </menupopup>
  99.         </rule>
  100.     </template>
  101. </toolbarbutton>
  102.  
  103. <toolbarbutton id="panelSwitch" class="geobutc" tooltiptext="Switch Addresses" oncommand="panelAddressSwitch();"/>
  104. </hbox> </row>
  105.         <row align="center">
  106. <label value="To: "/><textbox id="mappanel-to" width="220" />
  107. <hbox>
  108. <toolbarbutton tooltiptext="Use Address List item" type="menu" dir="reverse" id="mappanel-to-list" class="geobutc"
  109. datasources="" ref="" style="color: #000" sortResource="http://www.flock.com/rdf/maps#title" sortDirection="ascending"> 
  110.     <template>
  111.         <rule>
  112.             <menupopup>
  113.                 <menuitem uri="rdf:*" id="rdf:http://www.flock.com/rdf/maps#id"  label="rdf:http://www.flock.com/rdf/maps#title" value="rdf:http://www.flock.com/rdf/maps#location" oncommand="mappanelToReplaceAddress(this.value)"/>
  114.             </menupopup>
  115.         </rule>
  116.     </template>
  117. </toolbarbutton>
  118.  
  119. <toolbarbutton id="google" class="geobutc" tooltiptext="Google Directions" oncommand="panelAddressDirections('google')"/><toolbarbutton id="yahoo" class="geobutc" tooltiptext="Yahoo Directions" oncommand="panelAddressDirections('yahoo')"/><toolbarbutton id="microsoft" class="geobutc" tooltiptext="Microsoft Directions" oncommand="panelAddressDirections('microsoft')"/> </hbox></row>
  120. </rows>
  121. </grid>
  122. </vbox>
  123.  
  124.           </hbox>
  125.         </vbox>
  126.     <vbox style="margin: 15px 15px 15px 5px" >
  127.     <toolbarbutton id="addAddressPanel" class="geobutc" tooltiptext="Add to Address List" oncommand="panelAddAddress();"/>
  128.     <toolbarbutton id="panelsidebar" class="geobutc" tooltiptext="Add Address and Open" type="menu">
  129.       <menupopup>
  130.           <menuitem label="Open in Sidebar" oncommand="openSidebarFromPanel('sidebar');" />
  131.           <menuitem label="Open in Map Tab" oncommand="openSidebarFromPanel('maptab');" />    
  132.       </menupopup>
  133.     </toolbarbutton>
  134.     <toolbarbutton id="google" class="geobutc" tooltiptext="Open in Google Maps" oncommand="openAddressServicePanel('google');" />
  135.     <toolbarbutton id="yahoo" class="geobutc" tooltiptext="Open in Yahoo Maps" oncommand="openAddressServicePanel('yahoo');" />
  136.     <toolbarbutton id="microsoft" class="geobutc" tooltiptext="Open in Live Maps" oncommand="openAddressServicePanel('microsoft');" />
  137.     <toolbarbutton id="flickr" class="geobutc" tooltiptext="Open in Flickr" oncommand="openAddressServicePanel('flickr');" />
  138.     <toolbarbutton id="panoramio" class="geobutc" tooltiptext="Open in Panaramio" oncommand="openAddressServicePanel('panoramio');" />
  139.     <toolbarbutton id="tagzania" class="geobutc" tooltiptext="Tagzania" type="menu">
  140.       <menupopup>
  141.           <menuitem label="&menuitem.tagzania.post;" oncommand="openAddressServicePanel('tagzania-post');" />
  142.           <menuitem label="&menuitem.tagzania.nearby;" oncommand="openAddressServicePanel('tagzania-nearby');" />    
  143.       </menupopup>
  144.     </toolbarbutton>
  145.     <toolbarbutton id="upcoming" class="geobutc" tooltiptext="Open in Upcoming" oncommand="openAddressServicePanel('upcoming');" />
  146.     <toolbarbutton id="geody" class="geobutc" tooltiptext="Open in Geody" oncommand="openAddressServicePanel('geody');" />
  147.     <toolbarbutton id="geonames" class="geobutc" tooltiptext="Open in geoNames" oncommand="openAddressServicePanel('geonames');" />
  148.     <toolbarbutton id="google-earth" class="geobutc" tooltiptext="Open in Google Earth" oncommand="openAddressServicePanel('google-earth');" />
  149.         </vbox>
  150.       </hbox>
  151.     
  152.     </panel>
  153.     
  154.         <panel id="addresslistpanel" hidden="true" class="map-panel" style="
  155.         -moz-appearance: none;
  156.       background: rgba(0, 0, 0, .8);
  157.       color: white;
  158.       border: 3px solid #ccc;
  159.       -moz-border-top-colors: #ccc #ccc black;
  160.       -moz-border-right-colors: #ccc #ccc black;
  161.       -moz-border-bottom-colors: #ccc #ccc black;
  162.       -moz-border-left-colors: #ccc #ccc black;
  163.       -moz-border-radius: 10px;
  164.       margin-top: -3px;
  165.       margin-left: -3px;">
  166.           <vbox width="300" height="230" align="start" style="margin: 15px">
  167.             <label value="Multiple location matches found:"/>
  168.             <listbox seltype="single" id="panel-multiaddress-list" width="300" height="210" context="" onclick="multiAddressAddPanel(this.value);" >
  169.             </listbox>
  170.           </vbox>
  171.  
  172.         </panel>
  173.         
  174.      </popupset>
  175.     
  176.     
  177. </overlay>
  178.